import React, { Component } from 'react'
import GlobalContext from './Context'

export default class FilmDetail extends Component {
  render() {
    return (
      <GlobalContext.Consumer>
        {(value) => {
          console.log(value)
          let { film = {} } = value
          return <div className='filmDetail'>{film.synopsis}</div>
        }}
      </GlobalContext.Consumer>
    )
  }
}
